﻿#ifndef APPLICATION_H
#define APPLICATION_H

#include <QApplication>
#include <QSettings>
#include <QSqlError>
#include <QSqlDatabase>

class Application : public QApplication
{
    Q_OBJECT
public:
    explicit Application(int argc, char **argv);
    ~Application();

    void registerMetaType();
    void initLogger(QString path);
    void destroyLogger();

    QSettings *settings();
    QSqlDatabase *sqlDatabase();

private:
    QString m_lastDateTime;
    QSettings *m_settings;
    QString m_settingsFileName;
    QString m_databaseName;
    QSqlDatabase m_sqlDatabase;

};

#endif // APPLICATION_H
